<?php include COMMON_PATH.'/index/header.html' ?>
<!--论坛发帖详情-->
<div class="se-wrap main-content fd-wrap clearfix">
    <div class="nav-title-fixd clearfix">
        <span class="fl"><a href="/Society/index">文章列表</a>/<?=$detailed['society']['title']?></span>
        <a class="fr btn-forum-send" href="/Society/send">发帖</a>
    </div>
    <div class="forum-detail-wrap">
        <div class="author-info-title">
            <img class="author-avatar" src="<?=$detailed['society']['avatar']?>" alt="<?=$detailed['society']['nickname']?>" onerror = "iService.imgNoFind(this)">
            <div class="layui-inline">
                <b class=""><?=$detailed['society']['nickname']?>/<?=$detailed['society']['section']?></b>
                <span class="forum-date">发布日期：<?=$detailed['society']['createtime']?></span>
            </div>
        </div>
        <div class="forum-content">
            <h1 class="title"><?=$detailed['society']['title']?></h1>

            <?php $images = explode(',',$detailed['society']['images']);?>
            <?php if(!empty($images[0])):?>
                <?php foreach($images as $v):?>
                    <img src="<?=$v?>" alt="">
                <?php endforeach;?>
            <?php endif;?>
            <p class="forum-content-font"><?=$detailed['society']['content']?></p>
        </div>
        <div class="forum-action-wrap">
            <span class="comment-wrap"><i class="am-icon-commenting-o"></i>&nbsp;&nbsp; <b class="comment-num"><?=$detailed['society']['comment']?></b></span>
        </div>
        <div class="comment-tool-wrap">
            <input placeholder="输入评论" class="comment-input" type="text" />
            <!--[if IE]>
            <span class="placeholder">输入评论</span>
            <![endif]-->
            <i class="fr" data-sid="<?=$detailed['society']['sid']?>"  data-nickname="<?=$user['nickname']?>" data-avatar="<?=$user['avatar']?>" id="btn-send">发送</i>
        </div>
        <div class="forum-comment-wrap">
            <p class="title">全部评论：<b class="comment-num"><?=$detailed['count']?></b>条</p>
            <ul class="comment-list-wrap">
                <?php foreach($detailed['comment'] as $v):?>
                <li>
                    <div class="comment-info clearfix">
                        <img class="avatar" src="<?=$v['avatar']?>" onerror = "iService.imgNoFind(this)">&nbsp;<span><?=$v['nickname']?></span>
                        <i class="fr"><?=$v['createtime']?></i>
                    </div>
                    <p class="comment-font"><?=$v['content']?></p>
                </li>
                <?php endforeach;?>
            </ul>
        </div>

        <div id="comments-page-wrap" style="text-align: center; margin-top: 10px;"></div>
    </div>
</div>

<?php include COMMON_PATH.'/index/footer.html' ?>
<script>
    navActive(4);
    $('.btn-down').on('click',function(){
        $('.btn-down').hide();
        $('.btn-up').css('display','block');
    });
    $('.btn-up').on('click',function(){
        $('.btn-down').show();
        $('.btn-up').hide();
    });




</script>
</html>